package org.arrow.db.pojo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CodeUserRole entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "code_user_role", catalog = "hip_spr_tap")
public class CodeUserRole implements java.io.Serializable {

	// Fields

	private Long roleId;
	private String roleName;
	private String roleDescription;
	private Boolean enable;
	private Timestamp createDate;
	private Timestamp lastModifyDate;

	// Constructors

	/** default constructor */
	public CodeUserRole() {
	}

	/** minimal constructor */
	public CodeUserRole(Long roleId, Boolean enable, Timestamp createDate,
			Timestamp lastModifyDate) {
		this.roleId = roleId;
		this.enable = enable;
		this.createDate = createDate;
		this.lastModifyDate = lastModifyDate;
	}

	/** full constructor */
	public CodeUserRole(Long roleId, String roleName, String roleDescription,
			Boolean enable, Timestamp createDate, Timestamp lastModifyDate) {
		this.roleId = roleId;
		this.roleName = roleName;
		this.roleDescription = roleDescription;
		this.enable = enable;
		this.createDate = createDate;
		this.lastModifyDate = lastModifyDate;
	}

	// Property accessors
	@Id
	@Column(name = "ROLE_ID", unique = true, nullable = false)
	public Long getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	@Column(name = "ROLE_NAME", length = 256)
	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	@Column(name = "ROLE_DESCRIPTION", length = 512)
	public String getRoleDescription() {
		return this.roleDescription;
	}

	public void setRoleDescription(String roleDescription) {
		this.roleDescription = roleDescription;
	}

	@Column(name = "ENABLE", nullable = false)
	public Boolean getEnable() {
		return this.enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	@Column(name = "CREATE_DATE", nullable = false, length = 19)
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	@Column(name = "LAST_MODIFY_DATE", nullable = false, length = 19)
	public Timestamp getLastModifyDate() {
		return this.lastModifyDate;
	}

	public void setLastModifyDate(Timestamp lastModifyDate) {
		this.lastModifyDate = lastModifyDate;
	}

}